package model.VO;

import model.entity.Category;

import java.util.List;

public class CategoryPageVO {
   private int total;
   private List<Category> categoryList;

    public CategoryPageVO() {
    }

    public CategoryPageVO(int total, List<Category> categoryList) {
        this.total = total;
        this.categoryList = categoryList;
    }

    /**
     * 获取
     * @return total
     */
    public int getTotal() {
        return total;
    }

    /**
     * 设置
     * @param total
     */
    public void setTotal(int total) {
        this.total = total;
    }

    /**
     * 获取
     * @return categoryList
     */
    public List<Category> getCategoryList() {
        return categoryList;
    }

    /**
     * 设置
     * @param categoryList
     */
    public void setCategoryList(List<Category> categoryList) {
        this.categoryList = categoryList;
    }

    public String toString() {
        return "CategoryPageVO{total = " + total + ", categoryList = " + categoryList + "}";
    }
}
